package common.model.vo;

import com.google.common.collect.Lists;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author 米泽鹏
 */
@Data
public class MenuVo implements Serializable {

	private String path;
	private String name;
	private String component;
	private String redirect;
	private Meta meta = new Meta();
	private List<MenuVo> children = Lists.newArrayList();

	@Data
	public static class Meta {
		private Integer type;
		private String fullPath;
		private Boolean hidden;
		private String title;
		private Integer sort;
		private String icon;
		private Boolean keepAlive;
		private Boolean affix;
		private transient Long id;
		private transient Long parentId;
		private transient Boolean isPromoted = false;
	}

}
